import router from '@ohos.router';

export default {
    data: {
        title: "",
        typeList: [
            {
                name: '设备消息'
            },
            {
                name: '系统消息'
            }
        ],
        messageList: [
            {
                name: '监控摄像机', tips: '监测到可疑目标，请及时查看', time: '上午 10:20'
            },
            {
                name: '路由器', tips: '网络异常，无法联网，请及时查看', time: '上午 10:20'
            },
            {
                name: '监控摄像机', tips: '监测到可疑目标，请及时查看', time: '上午 10:20'
            },
            {
                name: '路由器', tips: '网络异常，无法联网，请及时查看', time: '上午 10:20'
            }
        ],
        settingMsgList: [
            {
                title: '今天又有优惠活动喔！', text: '新品家居上市，买一送二，绝不后悔！', time: '10月20日', imgSrc: '/common/images/messageImg1.png'
            },
            {
                title: '今天又有优惠活动喔！', text: '新品家居上市，买一送二，绝不后悔！', time: '10月21日', imgSrc: '/common/images/messageImg2.png'
            }
        ],
        typeNow: 0
    },
    onInit() {
        this.title = this.$t('strings.world');
    },
    selectType(selectedIndex) {
        console.info(selectedIndex + '点击了')
        this.typeNow = selectedIndex
    },
    toSet() {
        router.push({
            url: 'pages/message_set/message_set'
        })
    }
}



